<template>
  <div class="Loading">
    <div class="l">L</div>
    <div class="circle"></div>
    <div class="square"></div>
    <div class="triangle"></div>
    <div class="i">I</div>
    <div class="n">N</div>
    <div class="g">G</div>
  </div>
</template>

<script>
export default {
  name: 'VLoading'
}
</script>

<style lang="scss" scoped>
.Loading {
  position: absolute;
  width: 120px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  font-weight: 700;
  & > div {
    position: absolute;
    transform-origin: center;
  }
}

.l {
  left: 8px;
}

.i {
  left: 60px;
}

.n {
  left: 72px;
}

.g {
  left: 99px;
}

.square, .circle, .triangle {
  left: 30px;
}

.square {
  background: #75B3D1;
  width: 24px;
  height: 24px;
  left: 32px;
  top: 7px;
  transform: scale(0);
  animation: shrinkgrow 3s ease-in-out infinite;
  animation-delay: 2s;
}

.circle {
  background: #81D47D;
  width: 27px;
  height: 27px;
  top: 5px;
  left: 30px;
  border-radius: 50%;
  animation: shrinkgrow 3s ease-in-out infinite;
  animation-delay: 0s;
}

.triangle {
  width: 0;
  height: 0;
  left: 30px;
  top: 6px;
  border-style: solid;
  border-width: 0 14.5px 25.1px 14.5px;
  border-color: transparent transparent #d281a8 transparent;
  transform: scale(0);
  animation: shrinkgrow 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes shrinkgrow {
  0% {
    transform: scale(0);
  }
  12.5% {
    transform: scale(1)
  }
  25% {
    transform: scale(1)
  }
  33% {
    transform: scale(0)
  }
  100% {
    transform: scale(0)
  }
}
</style>
